package com.ax.center.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;


/**
 * @author zy
 * @date 2023/7/7 15:48
 */
@Data
@Accessors(chain = true)
@TableName(value = "announcement")
@ApiModel(value = "公告实体类")
public class Announcement {
    @TableId(type = IdType.AUTO)
    private Long id;
    @ApiModelProperty("标题")
    private String title;
    @ApiModelProperty("关键字")
    private String keywords;

    @ApiModelProperty("类别")
    private String category;

    @ApiModelProperty("紧急程度")
    private String urgency;

    @ApiModelProperty("发布时间")
    private String publishTime;

    @ApiModelProperty("发布者")
    private String publisher;

    @ApiModelProperty("面向对象")
    private String targetAudience;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("附件")
    private String attachments;

    @Override
    public String toString() {
        return "Announcement{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", keywords='" + keywords + '\'' +
                ", category='" + category + '\'' +
                ", urgency='" + urgency + '\'' +
                ", publishTime='" + publishTime + '\'' +
                ", publisher='" + publisher + '\'' +
                ", targetAudience='" + targetAudience + '\'' +
                ", content='" + content + '\'' +
                ", attachments='" + attachments + '\'' +
                '}';
    }
}
